run-docker.sh: Disable SELinux for the container
authorChristoph Reiter <creiter@src.gnome.org>
Tue, 13 Mar 2018 20:19:30 +0000 (21:19 +0100)
committerChristoph Reiter <creiter@src.gnome.org>
Tue, 13 Mar 2018 20:19:30 +0000 (21:19 +0100)
On Fedora and similar SELinux by default prevents containers accessing
mounted host directories. This script is just used for testing,
so disable it.

.gitlab-ci/run-docker.sh

index 699d2093da54598d442a779daba5f59a7230b700..4b2fc0ae75a954719791c8b7d151892986af0d32 100755 (executable)
@@ -14,6 +14,6 @@ TAG="lazka/gitlab-gtk-3-22:v1"
 # created in the mounted volume have the same owner
 sudo docker build \
     --build-arg HOST_USER_ID="$UID" --tag "${TAG}" --file "Dockerfile" .
-sudo docker run \
+sudo docker run --security-opt label=disable \
     --rm --volume "$(pwd)/..:/home/user/app" --workdir "/home/user/app" \
     --tty --interactive "${TAG}" bash